package com.mcms.util;

public class McmsServiceException extends RuntimeException{
    private String ecode;
	/**
	 * 
	 */
	private static final long serialVersionUID = -8211729708677743232L;
	
	public String getEcode() {
		return ecode;
	}

	public void setEcode(String ecode) {
		this.ecode = ecode;
	}

	public McmsServiceException(String msg) {
		super(msg);
	}

	public McmsServiceException(Throwable cause) {
		super(cause);
		ecode = "00999999";
	}

	public McmsServiceException(String msg, Throwable cause) {
		super(msg, cause);
		ecode = "00999999";
	}

	public McmsServiceException(String errorCode, String errorMessage) {
		super(errorMessage);
		ecode = errorCode;
	}

	public McmsServiceException(String errorCode, String errorMessage, Exception e) {
		super(errorMessage, e);
		ecode = errorCode;
	}
}
